package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(32)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(30)"`
}
type UserRole struct {
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(30)"`
}
type RoleNode struct {
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Person struct {
	gorm.Model
	PersonName string `gorm:"type:varchar(30)"`
	PersonTel  string `gorm:"type:varchar(30)"`
}
type PersonOrder struct {
	gorm.Model
	PersonCode  int    `gorm:"type:int"`
	PersonPrice string `gorm:"type:varchar(30)"`
	PersonForm  string `gorm:"type:varchar(30)"`
	PersonTo    string `gorm:"type:varchar(30)"`
	Pid         int    `gorm:"type:int"`
}
type PersonOrderList struct {
	OrderId     int
	PersonName  string
	PersonTel   string
	PersonCode  int
	PersonPrice string
	PersonForm  string
	PersonTo    string
}
